#!/bin/bash

TARGET=/home/emark
mkdir -p $TARGET $TARGET/tp $TARGET/temp

cp tp/phantomjs $TARGET/tp/
cp tp/*.js $TARGET/tp/


rm -f *.pyc
python -m py_compile *.py
cp *.pyc $TARGET/
cp Web $TARGET/
cp emarkd /etc/init.d/

rm -f *.pyc

echo 'done!'

